package com.example.fx.order

import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.MediaController
import com.example.base.mvvm.BaseViewFragment
import com.example.fx.R
import com.example.fx.databinding.FragmentPayedBinding


class PayedFragment : BaseViewFragment<FragmentPayedBinding>() {
    override fun getLayout(): Int = R.layout.fragment_payed

    override fun initView() {
        //显示进度条用
        val mediaController = MediaController(context)
        mediaController.setMediaPlayer(binding.vv)
        binding.vv.setMediaController(mediaController)

        binding.vv.setVideoPath("http://txmov6.a.yximgs.com/upic/2020/09/03/18/BMjAyMDA5MDMxODQ3MDhfMTY5MjYzMjNfMzU0NzE5NTYxMzRfMV8z_b_B9dd86d4ccbd6bba83a8380ca3a0b7d0a.mp4?tag=1-1599265808-vdg-1-ukvwl33qlz-c33383ae94c547ca&tt=b&bp=10000")
        binding.vv.start()

    }

    override fun initData() {
    }

}